package generic.entity;

import java.lang.reflect.Array;

/**
 * @author DonaldCen
 * @desc ArrayWithTypeEntity
 * @date 2025/11/7 16:58
 */
public class ArrayWithTypeEntity<T> {

    private T[] array;

    public ArrayWithTypeEntity(Class<T> type,int size) {
        array = (T[]) Array.newInstance(type, size);
    }
}
